import request from '@/utils/request'

/**
 * 获取-部门列表
 * @returns 返回一个promise
 */
export function getDepartmentListApi() {
    return request({
        url: '/company/department',
        method: 'get'
    })
}
/**
 * 获取-部门列表
 * @returns 返回一个promise
 */
export function gettalkListApi() {
    return request({
        url: '/sys/user/simple',
        method: 'get'
    })
}
/**
 * 新增部门
 * @returns 返回一个promise
 */
export function addDepartmentListApi() {
    return request({
        url: '/company/department',
        method: 'post'
    })
}
/**
 * 删除部门
 * @returns 返回一个promise
 */
export function delentDepartmentListApi() {
    return request({
        url: `/company/department/${id}`,
        method: 'delete'
    })
}